<!DOCTYPE html>
        <html lang="zh-cn">
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <meta name="description" content="">
            <meta name="author" content="">
            <link rel="icon" href="../../favicon.ico">

            <title>Off Canvas Template for Bootstrap</title>

            <!-- Bootstrap core CSS -->
            <link href="assets/css/bootstrap.min.css" rel="stylesheet">

            <!-- Custom styles for this template -->
            <link href="assets/css/offcanvas.css" rel="stylesheet">
            <link href="assets/css/style.css" rel="stylesheet">
            <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
            <!--[if lt IE 9]>
            <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
            <script src="assets/js/ie-emulation-modes-warning.js"></script>

            <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
            <!--[if lt IE 9]>
            <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
            <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
            <![endif]-->
        </head>

        <body>
        <nav class="navbar navbar-fixed-top navbar-inverse">
          <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
              <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
             
            </div>
            <?php 
               require_once('inc_admin.php'); 
           // require_once('system/dbConn.php');
            connect();
            $sql='select* from videotype ';
            $rs=mysql_query($sql)or die('查询1失败！'.mysql_error());
         ?>
         <ul class="nav navbar-nav">
          <li><a href="index.php">首页</a></li>
          <?php 
                while($row=mysql_fetch_assoc($rs))
                {
           ?>
             <li>
                 <a href="list.php?tid=<?php
                 echo $row["tid"];?>
                 "><?php 
                 echo $row["typename"];
                  ?>
                 </a></li>
                 <?php } ?>
         </ul>

          
            
              <form class="navbar-form navbar-left" role="search" action="search.php">
                <div class="form-group">
                  <input type="text" class="form-control" placeholder="Search" name="videoname">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
              </form>
              <ul class="nav navbar-nav navbar-right">
              <li class="active"> <a href="">欢迎 <?php 
              session_start();
              if (isset($_SESSION["user"]))
                echo "  ".$_SESSION["user"]."";
            else{
                echo"您";
            }
               ?> 访问本网站</a></li>
               <?php 
               if(isset($_SESSION["user"]))
               {
                 ?>
                 <li><a href="logout.php">注销</a></li>
                   <li class="dropdown">
                       <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                       aria-haspopup="true" aria-expanded="false">个人中心<span class="caret"></span></a>
                       <ul class="dropdown-menu">
                        <li><a href="#" data-toggle="modal" data-target="#changePassword">修改个人密码</a></li>
                        <li><a href="#" data-toggle="modal" data-target="#changeInfor">修改个人信息</a></li>   
                       <li><a href="myCommentList.php">我的评价</a></li>
                       </ul>
                   </li> 
                   <?php 
                   }else{ 
                    ?>   
                <li><a href="#" data-toggle="modal" data-target="#login">登录</a></li>
                <li><a href="#" data-toggle="modal" data-target="#reg">注册</a></li>
             <?php 
             } 
             ?>
    






         </ul>
          <!-- **************** -->
<?php 
 header("Content-type:text/html;charset=utf-8");
      require_once('./system/dbConn.php');
connect();
$id=$_GET['id'];
$sql="select * from comments where cid={$id}";
$result=mysql_query($sql) or die('查询失败'.mysql_error());
$row=mysql_fetch_assoc($result);
$vid = $row['vid'];
$content=$row['content'];
$sql="select * from videos where vid='$vid'";
$result=mysql_query($sql) or die('查询失败'.mysql_error());
$ro=mysql_fetch_assoc($result);
$videoname=$ro["videoname"];

 ?>

 <div class="container-fluid">
 <h1 align="center" style="color:red;">请修改您对该视频的评价信息</h1>;
 <form method="post" action="myCommentUpdate.php" enctype="multipart/form-data" class="form-horizontal">
    <input type="hidden" name="id"  value=<?php echo $id;?>>
 <div class="form-group">
    <label for="exampleInputUserName1" class=" control-label col-sm-offset-2 col-md-2 " >电影名称</label>
    <div class=" col-md-4" >
    <input type="text" name="videoname" class="form-control" id="exampleInputUserName1" disabled value=<?php echo $videoname; ?>>
    </div>  
  </div>

    <div class="form-group">
    <label for="exampleInputUserName2" class=" control-label col-sm-offset-2 col-md-2 ">评价内容</label>
    <div class=" col-md-4" >
    <input type="text" name="content" class="form-control" id="exampleInputUserName2" placeholder="1" value=<?php echo $content; ?>>
    </div>  
  </div>
  <div class="form-group">
    <div class="col-sm-offset-7 col-sm-4" >
    <input type="submit" class="btn btn-success" value="更新">
    </div>  
  </div>
</form>

</div>
     <!-- ************* --> 

<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
<script>
    $('.carousel').carousel({
        interval: 3000 //changes the speed
    })
</script>
</body>
</html>


     <!-- ***************** -->